package carson.web.mvc.core.results;

import carson.web.mvc.core.exceptions.ResponseFileException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * 表示操作方法的结果
 *
 * @author Carson Chen
 */
public abstract class AbstractResult {

    /**
     * 初始化 AbstractResult 类的新实例
     */
    protected AbstractResult() {

    }

    /**
     * 通过从 AbstractResult 类继承的自定义类型，启用对操作方法结果的处理
     *
     * @param request  请求对象
     * @param response 响应对象
     * @return 内容结果实例
     */
    public abstract void executeResult(HttpServletRequest request, HttpServletResponse response) throws Exception;
}
